SwappableImage.opIndexAssign

Sets a pixel given the position.

  1. void opIndexAssign(Color value, size_t x, size_t y)
    struct SwappableImage(Color)
    @nogc @safe
    void
    opIndexAssign
    (
    Color value
    ,
    size_t x
    ,
    size_t y
    )
    if (
    isColor!Color
    )
  2. void opIndexAssign(Color value, size_t offset)

Parameters

x size_t

X position in image

y size_t

Y position in image

value Color

The color to assign to the pixel

Throws

If x or y coordinate is outside of the image boundries.

See Also

setPixel

Meta